package cn.rengy.web.framework.wxmp.message;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rengy.web.framework.sql.DbService;

@Service
public class WxMsgTemplateService {

	@Autowired
	private DbService dbService;
	
	public void add(Map<String,Object> param) {
		this.dbService.updateMapParameter("insert_wx_msg_template", param);
	}
	
	public void update(Map<String,Object> param) {
		this.dbService.updateMapParameter("update_wx_msg_template", param);
	}
	
	public void delete(String template_id_short) {
		this.dbService.update("delete_wx_msg_template", template_id_short);
	}
}
